package com.qf.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TabPerson {

    private Integer id ;

    private String name ;

    private Integer age ;

    //TabUser包含另一个引用类型:TabUser的详情信息
    private TabPersonInfo tabPersonInfo ;

    /*public TabPerson() {
    }

    public TabPerson(Integer id, String name, Integer age, TabPersonInfo tabPersonInfo) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.tabPersonInfo = tabPersonInfo;
    }*/

    @Override
    public String toString() {
        return "TabPerson{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
